package com.tms.springboot.service;

import com.github.pagehelper.PageInfo;
import com.tms.springboot.base.pojo.PdTruck;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tms.springboot.search.PdTruckSearch;
import com.tms.springboot.view.PdTruckBasicsView;
import com.tms.springboot.view.PdTruckView;

import java.util.List;

/**
 * <p>
 * 车辆信息表 服务类
 * </p>
 *
 * @author cjj
 * @since 2023-06-14
 */
public interface PdTruckService extends IService<PdTruck> {

    /**
     * 分页查询车辆信息
     * @param pdTruckSearch
     * @return
     * @throws Exception
     */
    PageInfo<PdTruckView> pdTruckPage (PdTruckSearch pdTruckSearch) throws Exception;

    /**
     * 车辆详情查询
     * @return
     * @throws Exception
     */
    List<PdTruckBasicsView> vehicledetailsService (PdTruck pdTruck) throws Exception;

    /**
     *编辑车辆信息
     * @param pdTruck
     * @return
     * @throws Exception
     */
    boolean updateTruckService (PdTruck pdTruck) throws Exception;

}
